{"ast":null,"code":"import React from\"react\";import styles from'./Alert.module.scss';import{Alert,AlertTitle}from\"@mui/material\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var AlertBubble=function AlertBubble(props){if(props.state&&props.text.length>0){return/*#__PURE__*/_jsxs(Alert,{className:styles.infoAlert,severity:\"success\",onClose:function onClose(){props.updateInfo&&props.updateInfo(false);},children:[/*#__PURE__*/_jsx(AlertTitle,{children:\"\\u041E\\u0442\\u043B\\u0438\\u0447\\u043D\\u043E\"}),\"\\u0421\\u043B\\u0435\\u0434\\u0443\\u044E\\u0449\\u0438\\u0439 \\u0448\\u0430\\u0433 \\u2014 \",/*#__PURE__*/_jsx(\"strong\",{children:props.text})]});}return/*#__PURE__*/_jsx(\"div\",{className:styles.disableAlert});};export default AlertBubble;","map":{"version":3,"names":["React","styles","Alert","AlertTitle","AlertBubble","props","state","text","length","infoAlert","updateInfo","disableAlert"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/components/Alert/index.tsx"],"sourcesContent":["import React from \"react\";\nimport {AlertProps} from \"../../models/props/AlertProps\";\nimport styles from './Alert.module.scss';\nimport {Alert, AlertTitle} from \"@mui/material\";\n\nconst AlertBubble: React.FC<AlertProps> = (props) => {\n\n    if (props.state && props.text.length > 0) {\n        return (\n            <Alert className={styles.infoAlert} severity=\"success\" onClose={() => {props.updateInfo && props.updateInfo(false)}}>\n                <AlertTitle>Отлично</AlertTitle>\n                Следующий шаг — <strong>{props.text}</strong>\n            </Alert>\n        );\n    }\n\n    return (\n        <div className={styles.disableAlert}></div>\n    );\n}\n\nexport default AlertBubble;"],"mappings":"AAAA,MAAOA,MAAK,KAAM,OAAO,CAEzB,MAAOC,OAAM,KAAM,qBAAqB,CACxC,OAAQC,KAAK,CAAEC,UAAU,KAAO,eAAe,CAAC,wFAEhD,GAAMC,YAAiC,CAAG,QAApCA,YAAiC,CAAIC,KAAK,CAAK,CAEjD,GAAIA,KAAK,CAACC,KAAK,EAAID,KAAK,CAACE,IAAI,CAACC,MAAM,CAAG,CAAC,CAAE,CACtC,mBACI,MAAC,KAAK,EAAC,SAAS,CAAEP,MAAM,CAACQ,SAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAE,kBAAM,CAACJ,KAAK,CAACK,UAAU,EAAIL,KAAK,CAACK,UAAU,CAAC,KAAK,CAAC,EAAE,wBAChH,KAAC,UAAU,yDAAqB,kGAChB,wBAASL,KAAK,CAACE,IAAI,EAAU,GACzC,CAEhB,CAEA,mBACI,YAAK,SAAS,CAAEN,MAAM,CAACU,YAAa,EAAO,CAEnD,CAAC,CAED,cAAeP,YAAW"},"metadata":{},"sourceType":"module"}